package com.ruoyi.common.core.enums;

public enum  StandardWeightUnit {
    KILOGRAM("千克"),
    GRAM("克"),
    KG1("KG1");

    private String unit;



    StandardWeightUnit(String KILOGRAM) {
    }

    public String getUnit() {
        return unit;
    }


    public static void main(String[] args) {
        String input = "千克";
        try {
            StandardWeightUnit weightUnit = StandardWeightUnit.valueOf(input);
            System.out.println("输入的字符串在枚举中");
        } catch (IllegalArgumentException e) {
            System.out.println("输入的字符串不在枚举中");
        }
    }

}
